package mrdog.captor;

import jpcap.PacketReceiver;
import jpcap.packet.Packet;

public class PacketListener implements PacketReceiver {

	PacketPool pool = null;
	
	public PacketListener(PacketPool pool) {
		if(pool != null) {
			this.pool = pool;
		}
	}
	
	public void receivePacket(Packet p) {
		if(p != null) {
			pool.add(p);
		}
	}

}
